//
//  MRequestManage.h
//  MApiSample
//
//  Created by IOS_HMX on 17/2/16.
//  Copyright © 2017年 Mitake. All rights reserved.
//



//******************************使用说明*************************/
//       1，项目里所有发送的请求地方
//
//       [MApi sendRequest:...]   ----改为--->    [MRequestManage sendRequest:...]
//
//       2，项目里取消请求的地方
//
//       [MApi cancelAllRequests] ----改为--->    [MRequestManage cancelAllRequests]
//       [MApi cancelRequest:...] ----改为--->    [MRequestManage cancelRequest:...]
//
//       3，程序启动认证注册成功后调用
//
//       [MRequestManage registerSuccess];
//******************************end*************************/


#import "MApi.h"
#import <Foundation/Foundation.h>

@interface MRequestManage : NSObject
+ (void)sendRequest:(MRequest *)request completionHandler:(MApiCompletionHandler)handler;
+ (void)sendRequest:(MRequest *)request completionHandler:(MApiCompletionHandler)handler timeoutHandler:(MApTimeoutHandler)timeoutHandler;
+ (void)cancelAllRequests;
+ (void)cancelRequest:(MRequest *)request;
+ (void)registerSuccess;
@end
